using System;
using System.Collections.Generic;
using System.Text;
using Objects;
using DAL;

namespace BAL
{
    public class BALLoaiThe
    {
        BALLoaiThe _dal;
        public BALLoaiThe()
        {
            _dal = new BALLoaiThe();
        }

        

        public static int Insert_LoaiThe(String LoaiThe,String TenThe,String GhiChu, int SapXep)
        {
            DALLoaiThe _dal = new DALLoaiThe();
            return _dal.Insert_LoaiThe(LoaiThe,TenThe,GhiChu,SapXep);
        }

        public static int Update_LoaiThe(int id, String LoaiThe, String TenThe, String GhiChu, int Status ,int SapXep)
        {
            DALLoaiThe _dal = new DALLoaiThe();
            return _dal.Update_LoaiThe(id, LoaiThe,TenThe,GhiChu,Status,SapXep);
        }

        public static int Delete_LoaiThe(int id)
        {
            DALLoaiThe _dal = new DALLoaiThe();
            return _dal.Delete_LoaiThe(id);
        }

        public static List<LoaiThe> GetAllItem()
        {
            DALLoaiThe _dal = new DALLoaiThe();
            return _dal.GetAllItem();
        }

        public static LoaiThe GeById(int Id)
        {
            DALLoaiThe _dal = new DALLoaiThe();
            return _dal.GeById(Id);
        }
    }
}
